package com.nj.liandi.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.nj.liandi.common.utils.PageUtils;
import com.nj.liandi.gulimall.product.entity.SpuInfoDescEntity;
import com.nj.liandi.gulimall.product.entity.SpuInfoEntity;
import com.nj.liandi.gulimall.product.vo.SpuSaveVo;

import java.util.Map;

/**
 * spu信息
 *
 * @author MZJ
 * @email MZJ@gmail.com
 * @date 2021-08-19 14:07:17
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveSpuInfo(SpuSaveVo vo);

    void saveBaseSpuInfo(SpuInfoEntity spuInfoEntity);

    PageUtils queryPageCondition(Map<String, Object> params);

    void up(Long spuId);

    /*
     * description: 通过skuId获取商品spu信息 
     * version: 1.0 
     * date: 2021/11/1 9:50
     * author: maizj 
     * param: [skuId]
     * @return com.nj.liandi.gulimall.product.entity.SpuInfoEntity
     * */
    SpuInfoEntity getSpuInfoBySkuId(Long skuId);
}

